package com.mairuide.datalog;

public enum SystemFlag {
	ZD("账单分析系统", 0) ,HD("话单分析系统", 1),DZ("电子取证", 2);
	// 成员变量
	private String name;
	private int indexFlag;

	// 构造方法
	private SystemFlag(String name, int indexFlag) {
		this.name = name;
		this.indexFlag = indexFlag;
	}

	// 普通方法
	public static String getIndexFlag(Integer indexFlag) {
		for (SystemFlag c : SystemFlag.values()) {
			if (c.getIndexFlag() == indexFlag) {
				return c.name;
			}
		}
		return null;
	}

	// get set 方法
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIndexFlag() {
		return indexFlag;
	}

	public void setIndexFlag(int indexFlag) {
		this.indexFlag = indexFlag;
	}
}
